import Vue from 'vue'
import uniCrazyRouter from "uni-crazy-router";
Vue.use(uniCrazyRouter)

import {
	bindInterceptLogin
} from './auth/interceptLogin.js'

/**
 * 类似express的路由，从上而下依次执行
 */
// bindInterceptLogin()

uniCrazyRouter.beforeEach(async (to, from, next) => {
	console.log('daim')
	// 逻辑代码
	next()
})

uniCrazyRouter.afterEach((to, from) => {
	// 逻辑代码
})

uniCrazyRouter.onError((to, from) => {
	// 逻辑代码
})
